package ar.uba.fi.taller2.cmmiassistant.frontend.adaptadores.comparators;

import java.util.Comparator;

import ar.uba.fi.taller2.cmmiassistant.modelo.cmmi.Practica;

public class NombrePracticaComparator implements Comparator<Practica> {
    private static final NombrePracticaComparator instance = new NombrePracticaComparator();
    
    public static NombrePracticaComparator instance() {
        
        return instance;
    }
    
    public int compare(Practica practica1, Practica practica2) {

        return practica1.getNombre().compareTo(practica2.getNombre());
    }

    
}
